﻿<%@ Page Title="Coca-Cola 添加检查表" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="ModifyScoreChart.aspx.cs" Inherits="PCMSofCC.Admin.ModifyScoreChart" %>

<asp:Content ID="Content3" ContentPlaceHolderID="Head" runat="server">
    <link href="../css/content.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
    <div id="container" class="container">
        <div id="content2" class="content2">
            <p>
                <div id="selectScoreChartContainer" class="selectScoreChartContainer">
                    选择检查表：
                    <asp:DropDownList ID="SelectScoreChart" runat="server" CssClass="dropDownList" DataSourceID="SqlDataSource2"
                        DataTextField="Name" DataValueField="Id">
                    </asp:DropDownList>
                    &nbsp;
                    <asp:Button ID="btnSelectChart" runat="server" Text="选择" CssClass="button2" OnClick="btnSelectChart_Click" />
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString1 %>"
                        SelectCommand="SELECT * FROM [ScoreChart]"></asp:SqlDataSource>
                </div>
            </p>
            <!--autocheck the selected items in the selected scoreChart-->
            <p>
                <div id="gridViewContainer" class="gridViewContainer">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="gridView"
                        RowStyle-CssClass="gridViewItem1" AlternatingRowStyle-CssClass="gridViewItem2"
                        DataKeyNames="Id" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                        <RowStyle CssClass="gridViewItem1"></RowStyle>
                        <Columns>
                            <asp:BoundField HeaderStyle-CssClass="gridViewHead" DataField="Name" HeaderText="评估项目"
                                SortExpression="Name">
                                <HeaderStyle CssClass="gridViewHead"></HeaderStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderStyle-CssClass="gridViewHead" DataField="MaxScore" HeaderText="考核分数"
                                SortExpression="MaxScore">
                                <HeaderStyle CssClass="gridViewHead"></HeaderStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderStyle-CssClass="gridViewHead" DataField="Criteria" HeaderText="评分标准"
                                SortExpression="Criteria">
                                <HeaderStyle CssClass="gridViewHead"></HeaderStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderStyle-CssClass="gridViewHead" DataField="Remark" HeaderText="备注"
                                SortExpression="Remark">
                                <HeaderStyle CssClass="gridViewHead"></HeaderStyle>
                            </asp:BoundField>
                            <asp:TemplateField HeaderStyle-CssClass="gridViewHead">
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" /></ItemTemplate>
                                <HeaderStyle CssClass="gridViewHead"></HeaderStyle>
                            </asp:TemplateField>
                        </Columns>
                        <AlternatingRowStyle CssClass="gridViewItem2"></AlternatingRowStyle>
                    </asp:GridView>
                </div>
            </p>
            <p>
                <asp:Button ID="Submit" runat="server" Text="提交" OnClick="Submit_Click" CssClass="button2" />
                <asp:Button ID="Reset" runat="server" Text="重置" CssClass="button2" />
            </p>
        </div>
    </div>
</asp:Content>
